//
//  Input_LeftImage_RightImage_Cell.m
//  car
//
//  Created by chenxu on 4/10/15.
//  Copyright (c) 2015 chenxu. All rights reserved.
//

#import "Input_LeftImage_RightImage_Cell.h"

@implementation Input_LeftImage_RightImage_Cell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (IBAction)btnClicked:(id)sender {
    if (_buttonClicked){
        _buttonClicked();
    }
}

- (IBAction)valueChanged:(id)sender {
   
    if (_valueChanged) {
        _valueChanged(_input.text);
    }
}

- (IBAction)editEnd:(id)sender {
    if (_editEnd) {
        _editEnd(_input.text);
        [_input resignFirstResponder];
    }
}


#pragma mark - UIView
- (void)layoutSubviews {
    [super layoutSubviews];
    self.backgroundColor = [UIColor whiteColor];
    
    _rightBtn.layer.cornerRadius=  kCornerRadius;
    [_rightBtn setPopingPressed];
}
@end
